import http from '@/utils/http'

// 与老项目保持一致的接口路径映射
const api = {
    // 新增/编辑/类型/桌台/详情
    deskBookAdd: 'deskBook/add',
    deskBookEdit: 'deskBook/edit',
    deskBookTypeList: 'deskBook/typeList',
    deskBookDeskList: 'deskBook/deskList',
    deskBookDetail: 'deskBook/detail',
    // 取消/列表/菜品列表/开台/短信/短信记录
    deskBookCancel: 'deskBook/cancle',
    deskBookList: 'deskBook/list',
    deskBookFoodList: 'deskBook/foodList',
    deskBookOpenBookDesk: 'deskBook/openBookDesk',
    deskBookMessageSend: 'deskBook/send',
    deskBookSmsList: 'deskBook/smsList',
    // 预订页面桌台/小票
    bookDeskTopList: 'deskBook/bookDeskList',
    deskBookTicketDetail: 'deskBook/ticketDetail'
}

export function deskBookAdd(params: Record<string, any>) {
    return http.post(api.deskBookAdd, params)
}
export function deskBookEdit(params: Record<string, any>) {
    return http.post(api.deskBookEdit, params)
}
export function deskBookTypeList(params?: Record<string, any>) {
    return http.post(api.deskBookTypeList, params)
}
export function deskBookDeskList(params: Record<string, any>) {
    return http.post(api.deskBookDeskList, params)
}
export function deskBookDetail(params: Record<string, any>) {
    return http.post(api.deskBookDetail, params)
}
export function deskBookCancel(params: Record<string, any>) {
    return http.post(api.deskBookCancel, params)
}
export function deskBookList(params: Record<string, any>) {
    return http.post(api.deskBookList, params)
}
export function deskBookFoodList(params: Record<string, any>) {
    return http.post(api.deskBookFoodList, params)
}
export function deskBookOpenBookDesk(params: Record<string, any>) {
    return http.post(api.deskBookOpenBookDesk, params)
}
export function deskBookMessageSend(params: Record<string, any>) {
    return http.post(api.deskBookMessageSend, params)
}
export function deskBookSmsList(params: Record<string, any>) {
    return http.post(api.deskBookSmsList, params)
}
export function bookDeskTopList(params: Record<string, any>) {
    return http.post(api.bookDeskTopList, params)
}
export function deskBookTicketDetail(params: Record<string, any>) {
    return http.post(api.deskBookTicketDetail, params)
}

// 可按需逐步补齐其他接口：
// export function deskBookTicketDetail(params: Record<string, any>) { ... }
// export function deskBookCancel(params: Record<string, any>) { ... }
// export function deskBookOpenBookDesk(params: Record<string, any>) { ... }
// export function deskBookTypeList() { ... }
// export function deskBookDeskList(params: Record<string, any>) { ... }
// export function deskBookAdd(params: Record<string, any>) { ... }
// export function deskBookEdit(params: Record<string, any>) { ... }
// export function deskBookFoodList(params: Record<string, any>) { ... }
// export function deskBookSmsList(params: Record<string, any>) { ... }
// export function deskBookMessageSend(params: Record<string, any>) { ... }

